package com.myday.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计时器对象 my_timer
 * 
 * @author xiaofengs
 * @date 2024-05-21
 */
public class MyTimer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计时器ID */
    private Long id;

    /** 待办ID */
    @Excel(name = "待办ID")
    private Long todoId;

    /** 已经经历的时间 */
    private Date duration;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTodoId(Long todoId) 
    {
        this.todoId = todoId;
    }

    public Long getTodoId() 
    {
        return todoId;
    }
    public void setDuration(Date duration) 
    {
        this.duration = duration;
    }

    public Date getDuration() 
    {
        return duration;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("todoId", getTodoId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("duration", getDuration())
            .toString();
    }
}
